<?php
// Path: system/core/classes/registry.class.php

class registry {
  // Variables
  public $variables;
  
  // Functions
  function add($key, $value) {
    if (__isset($key) && __isset($value)) {
      $this->variables[$key] = $value;
    }
    else {
      return false;
    }
  }
  function delete($key) {
    if (__isset($key)) {
      unset($this->variables[$key]);
    }
    else {
      return false;
    }
    
  }
  function modify($key, $value) {
    if (__isset($key) && __isset($value)) {
      if (__isset($this->variables[$key])) {
        $this->variables[$key] = $value;
      }
      else {
        return false;
      }
    }
    else {
      return false;
    }
  }
  function get($key = "") {
    if (__isset($key)) {
      return $this->variables[$key];
    }
    else {
      return $this->variables;
    }
  }
  
}
$system['classes']['registry'] = new registry();

?>
